package actions.members;

import java.util.ArrayList;
import java.util.List;

import veilingDomein.Categorie;
import veilingDomein.Veiling;
import veilingService.IBiedingService;
import veilingService.IVeilingService;
import veilingService.ServiceProvider;

import com.opensymphony.xwork2.ActionSupport;

public class VeilingList extends ActionSupport {
	private IBiedingService ibs = veilingService.ServiceProvider
			.getBiedingService();
	private IVeilingService ivs = veilingService.ServiceProvider
			.getVeilingService();
	private List<Veiling> veilingen = new ArrayList<Veiling>();
	private List<Categorie> categorien = new ArrayList<Categorie>();

	public String execute() {
		veilingen = ivs.haalVeilingenop();
		categorien = ibs.haalCategorienOp();
		return ActionSupport.SUCCESS;
	}

	public List<Veiling> getVeilingen() {
		return veilingen;
	}

	public List<Categorie> getCategorien() {
		return categorien;
	}
}
